package com.jbp.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 背包表
 * 
 * @author lucheng feng
 * @email retailers@gmail.com
 * @date 2020-06-26 13:49:51
 */
@ApiModel(value="UserPacksack对象",description="用户背包对象")
@Data
@TableName("user_packsack")
public class UserPacksack implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@ApiModelProperty(value="编号",name="id")
	@TableId
	private Integer id;
	/**
	 * 
	 */
	@ApiModelProperty(value="用户编号",name="userId")
	private Integer userId;
	/**
	 * 礼品编号
	 */
	@ApiModelProperty(value="礼物编号",name="giftId")
	private Integer giftId;

	@ApiModelProperty(value="礼物名称",name="giftId")
	@TableField(exist = false)
	private String giftName;

	@ApiModelProperty(value="礼物图片",name="giftId")
	@TableField(exist = false)
	private String giftImage;
	/**
	 * 数量
	 */
	@ApiModelProperty(value="数量",name="number")
	private Integer number;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value="创建时间",name="createTime")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/**
	 * 修改时间
	 */
	@ApiModelProperty(value="修改时间",name="updateTime")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;

	@ApiModelProperty(value="价值",name="price")
	@TableField(exist = false)
	private Integer price;

}
